<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class Settings_Sitemap_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_mode = $form->get_field('mode');
		$f_mode_view = new Form_Field_Select_View($form->get_name().'_'.$f_mode->get_name(), $f_mode);
		$this->add_field_view('mode', $f_mode_view);

		$f_weight = $form->get_field('weight');
		$f_weight_view = new Form_Field_Select_View($form->get_name().'_'.$f_weight->get_name(), $f_weight);
		$this->add_field_view('weight', $f_weight_view);

		$f_change_freq = $form->get_field('change_freq');
		$f_change_freq_view = new Form_Field_Select_View($form->get_name().'_'.$f_change_freq->get_name(), $f_change_freq);
		$this->add_field_view('change_freq', $f_change_freq_view);
	}
}